//
//  LKTradeRightWebViewCell.m
//  Mideleague_Agent
//
//  Created by Zhiwang on 2020/6/22.
//  Copyright © 2020 Zhiwang. All rights reserved.
//

#import "LKTradeRightWebViewCell.h"

@interface LKTradeRightWebViewCell()
@property (weak, nonatomic) IBOutlet UILabel *bottomLabel;



@end


@implementation LKTradeRightWebViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
-(void)setUrl:(NSString *)url{
    _url = url;
    self.webView = [[UIWebView alloc] init];
    [self.bgView addSubview:self.webView];
    [self.webView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.top.bottom.equalTo(self.bgView);
    }];
    NSURL *urlStr = [NSURL URLWithString:url];
    NSURLRequest *request = [NSURLRequest requestWithURL:urlStr];
    [self.webView loadRequest:request];
    self.webView.scrollView.scrollEnabled = NO;
    self.webView.scrollView.showsVerticalScrollIndicator = NO;
}
-(void)setHeader:(NSString *)header{
    _header = header;
    self.bottomLabel.text = _header;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
